<template>
  <div class="icon-select">
    <Input v-model="iconName" clearable placeholder="请输入图标名称">
      <template #prefix>
        <Icon type="ios-contact" />
      </template>
    </Input>
    <div class="icon-select-list">
      <div v-for="(item, index) in iconList" :key="index">
        <Icon :type="item.type" />
        <span>{{ item.iconName }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'zzSelectIcon',
  data() {
    return {
      iconName: '',
      iconList: [
        { type: 'ios-contact', iconName: 'ios-contact' },
        { type: 'ios-contact', iconName: 'ios-contact' },
      ],
    }
  },
}
</script>

<style lang="less" scoped></style>
